package com.alisls.shequtao.service.goods.service;

import com.alisls.shequtao.common.service.BaseService;
import com.alisls.shequtao.service.goods.dto.SkuDTO;
import com.alisls.shequtao.service.goods.dto.SkuDetailDTO;
import com.alisls.shequtao.service.goods.entity.SkuDO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 商品特有属性服务
 *
 * @author Ke Wang
 */
public interface SkuService extends IService<SkuDO>, BaseService<SkuDO, SkuDTO> {

    List<SkuDTO> listSkusBySpuId(Long spuId);

    void saveSkuAndSkuDetail(List<SkuDetailDTO> skuDetailDTOs);

}
